package com.project.bean;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 房间设施实体类
 */
public class FacilityBean implements Serializable {
    /**编号*/
    private int id;
    /**设施具体问题*/
    private String info;
    /**损坏时间*/
    private LocalDate date = LocalDate.now();
    /**解决情况*/
    private String state = "未解决";
    /**所属房间*/
    private RoomBean room;

    public FacilityBean() {
    }

    public FacilityBean(String info, int address) {
        this.info = info;
        this.room = new RoomBean();
        this.room.setId(address);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public RoomBean getRoom() {
        return room;
    }

    public void setRoom(RoomBean room) {
        this.room = room;
    }

    @Override
    public String toString() {
        return "FacilityBean{" +
                "id=" + id +
                ", info='" + info + '\'' +
                ", date=" + date +
                ", state='" + state + '\'' +
                ", room=" + room +
                '}' + "\n";
    }
}
